<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>

  <script>
    class User {
      constructor(name) {
        this.name = name
      }

      sayHi() {
        console.log(this.name)
      }
    }

    // User是一个函数
    console.log(typeof User)

    console.log(User === User.prototype.constructor)

    console.log(User.prototype.sayHi)

    console.log(Object.getOwnPropertyNames(User.prototype))
  </script>
</html>
